package com.example.mapper;

import com.example.entity.Img;
import com.example.entity.Menu;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ImgMapper {
    @Select("select * from img where imgid=#{imgid} ")
    Img findByImgid(String imgid);
    @Insert("insert into img(imgurl) value(#{imgUrl})")
    void insert(Img img);
    @Delete("DELETE FROM img WHERE imgid= #{imgid}")
    void delete(String imgid);
}
